package com;

import com.itheima.config.SpringConfig;
import com.itheima.dao.BookDao;
import com.itheima.service.ResourcesService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Aop {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        //BookDao bookDao = context.getBean(BookDao.class);
        //bookDao.update();
        ResourcesService service = context.getBean(ResourcesService.class);
        boolean flag = service.openURL("http://pan.baidu.com/haha", " root ");
        System.out.println(flag);
    }
}
